package com.itheima.reggie.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.itheima.reggie.config.LocalDateTimeConverter;
import lombok.Data;

import java.time.LocalDateTime;


@Data
public class CommonEntity {
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "创建时间",converter = LocalDateTimeConverter.class)
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "更新时间",converter = LocalDateTimeConverter.class)
    private LocalDateTime updateTime;
    private Long createUser;
    private Long updateUser;


}
